package config;

//import org.springframework.http.HttpStatus;
//import org.springframework.web.bind.annotation.ResponseStatus;
//
///**
// * @author lzzy_gxy on 2021/11/7.
// * Description:
// */
//@ResponseStatus(HttpStatus.NOT_FOUND)
//public class NotFoundException extends RuntimeException {
//    public NotFoundException(String message){
//        super(message);
//    }
//}
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.NOT_FOUND)
public class NotFoundException extends RuntimeException{
    public String errInfo;
    public NotFoundException(String message){
        super(message);
        errInfo = message;

    }

    public String getErrInfo(){
        System.out.println("not found");
        return errInfo;
    }
}
